home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / bloop.swf / scripts / DefineSprite_192_hud / frame_1 / DoAction.as
Text File  |  2007-09-27  |  2KB  |  73 lines

  1. gameover._visible = false;
  2. nexttimer = 2000;
  3. _root.setFrame(this);
  4. onEnterFrame = function()
  5. {
  6.    _root.checkFrame(this);
  7.    if(nexttimer > 0)
  8.    {
  9.       if(gameover._visible == false)
  10.       {
  11.          nexttimer -= 1;
  12.       }
  13.    }
  14.    else if(gameover._visible == false)
  15.    {
  16.       nexttimer = 3000;
  17.       levelmode.play();
  18.    }
  19.    if(_root.lives <= 0)
  20.    {
  21.       _root.gameover = true;
  22.    }
  23.    if(_root.gameover == true)
  24.    {
  25.       gameover._visible = true;
  26.    }
  27.    lives = "Lives: " + _root.lives;
  28.    score = "Score: " + _root.score;
  29.    level = "Level: " + _root.level;
  30.    this.swapDepths(_root.depth + 50000000);
  31.    if(_root.bigbcount > 0)
  32.    {
  33.       timer1_check = _root.bigbcount / 48;
  34.       timer1_di = "" + _root.bigbcount / 48 + "";
  35.       timer1_d = timer1_di.split("");
  36.       if(timer1_check >= 10)
  37.       {
  38.          timer1 = "" + timer1_d[0] + "" + timer1_d[1] + "";
  39.       }
  40.       else
  41.       {
  42.          timer1 = "" + timer1_d[0] + "";
  43.       }
  44.       _root.bubblesize = 60;
  45.       _root.bigbcount -= 1;
  46.    }
  47.    else
  48.    {
  49.       timer1 = "";
  50.       _root.bubblesize = 30;
  51.       _root.bigb = false;
  52.    }
  53.    if(_root.rapidcount > 0)
  54.    {
  55.       timer2_check = _root.rapidcount / 48;
  56.       timer2_di = "" + _root.rapidcount / 48 + "";
  57.       timer2_d = timer2_di.split("");
  58.       if(timer2_check >= 10)
  59.       {
  60.          timer2 = "" + timer2_d[0] + "" + timer2_d[1] + "";
  61.       }
  62.       else
  63.       {
  64.          timer2 = "" + timer2_d[0] + "";
  65.       }
  66.       _root.rapidcount -= 1;
  67.    }
  68.    else
  69.    {
  70.       timer2 = "";
  71.    }
  72. };
  73.